import type { AppRouteModule } from '/@/router/types';

// import { getParentLayout, LAYOUT } from '/@/router/constant';
import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const fzz: AppRouteModule = {
  path: '/balconyManager',
  name: 'BalconyManager',
  component: LAYOUT,
  redirect: '/BalconyManager/investigate',
  meta: {
    orderNo: 206,
    icon: 'ion:layers-outline',
    title: t('routes.demo.balconyManager.root'),
    roles: ['City', 'Area', 'UnitAdmin', 'CityUnitAdmin', 'Street'],
    userGroups: ['Admin', 'FireControl'],
  },
  children: [
   
    // 工作进展统计
    {
      path: 'countDange',
      name: 'countDange',
      meta: {
        title: t('routes.demo.balconyManager.countDanger'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
        //roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        // userGroups: ['Admin', 'FireControl'],
        //roles: ['City'],
        userGroups: ['Admin', 'FireControl'],
      },
      component: () => import('/@/views/balconyManager/workprogress/index.vue'),
       children: [
        {
          path: 'jcTownStatic',
          name: 'jcTownStatic',
          meta: {
            dynamicTitle: true, // 标记需要动态更新
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '',
          },
          component: () => import('/@/views/balconyManager/workprogress/component/jcTownStatic.vue'),
        },
        {
          path: 'jcVillageStatic',
          name: 'jcVillageStatic',
          meta: {
            dynamicTitle: true, // 标记需要动态更新
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '',
          },
          component: () => import('/@/views/balconyManager/workprogress/component/jcVillageStatic.vue'),
        },
        {
          path: 'jchourselist',
          name: 'jchourselist',
          meta: {
            dynamicTitle: true, // 标记需要动态更新
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '',
          },
          component: () => import('/@/views/balconyManager/workprogress/component/jchourselist.vue'),
        },
            {
          path: 'hourseCheckYh',
          name: 'hourseCheckYh',
          meta: {
            dynamicTitle: true, // 标记需要动态更新
            hideMenu: false,
            roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
            userGroups: ['Admin', 'FireControl'],
            title: '',
          },
          component: () => import('/@/views/balconyManager/workprogress/component/hourseCheckYhDetailLog.vue'),
        },
      ],
    },
     // 工作进展统计明细
    {
      path: 'countDetail',
      name: 'countDetail',
      meta: {
        title: t('routes.demo.balconyManager.countDetail'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator', 'FireControl'],
        //roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        // userGroups: ['Admin', 'FireControl'],
        //roles: ['City'],
        userGroups: ['Admin', 'FireControl'],
      },
     // component: () => import('/@/views/balconyManager/balconyCount/dangeIndex.vue'),
      component: () => import('/@/views/balconyManager/wprogressdetail/index.vue'),
    },
  ],
};

export default fzz;
